package com.runa.rccprotocol.dto;

import com.runa.protocol.dto.DtuReportAck;
import com.runa.protocol.dto.IResponseData;
import com.runa.rccprotocol.constant.AppFunCode;

/**
 * @author zhuj
 */
public abstract class ConcentratorResponseData<T> implements IResponseData<T> {

    private String address;

    private boolean isUpward;

    private DtuReportAck ack;

    private boolean tailFrame = true;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public short getTransSign() {
        return 0;
    }

    public boolean isUpward() {
        return isUpward;
    }

    public void setUpward(boolean upward) {
        isUpward = upward;
    }

    public boolean isTailFrame() {
        return tailFrame;
    }

    public void setTailFrame(boolean tailFrame) {
        this.tailFrame = tailFrame;
    }

    public DtuReportAck getAck() {
        return ack;
    }

    public void setAck(DtuReportAck ack) {
        this.ack = ack;
    }
}
